package com.ishow.common.exception;

/**
 * 参数异常
 * 
 * @author chichi
 * @version 1.0
 */
public class ParameterException extends BaseException {

	/** serialVersionUID */
	private static final long serialVersionUID = 6417641452178955756L;

	protected static String param_code = "900002";

	protected String param;

	protected String message;

	public ParameterException() {
		super(param_code);
	}

	public ParameterException(String code, String param, String message) {
		super(code);
		if (code == null || "".equals(code)) {
			super.code = param_code;
		}
		this.param = param;
		this.message = message;
	}

	public ParameterException(String code, Throwable cause) {
		super(code, cause);
		if (code == null || "".equals(code)) {
			super.code = param_code;
		}
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String getParam() {
		return param;
	}

	public void setParam(String param) {
		this.param = param;
	}

}
